.knowledge-graph {
    width: 100%;
    height: 100%;
}

/* search */
.search-box {
    padding: 30px 0;
}
.search-box>div {
    width: 40%;
    height: 44px;
    min-width: 400px;
    max-width: 600px;
    margin: auto;
    position: relative;

    border-radius: 2px;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.08);
    transition: box-shadow 200ms cubic-bezier(0.4, 0.0, 0.2, 1);
}
.search-box>div:hover {
    box-shadow: 0 3px 8px 0 rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.08);
}
.search-box input {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0 65px 0 16px;
    font-size: 16px;
}
.search-box button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: block;
    width: 56px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("/static/img/search.png");
}
.search-box button:hover {
    background-image: url("/static/img/search_hover.png");
}

/* svg */
.svg-box {
    width: 100%;
    height: calc(100% - 134px);
    overflow: hidden;
    position: relative;
}

/* tips */
.tooltip-popper {
    display: block;
    padding-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    position: fixed;
    z-index: 1060;
    transform: translateX(-50%);
}
.tooltip-arrow {
    position: absolute;
    left: 50%;
    top: 3px;
    margin-left: -5px;
    width: 0;
    height: 0;
    border-width: 0 5px 5px;
    border-color: transparent;
    border-bottom-color: rgb(70,76,91);
    border-style: solid;
}
.tooltip-inner {
    max-width: 250px;
    min-height: 34px;
    padding: 8px 12px;
    box-sizing: border-box;
    color: #fff;
    text-align: left;
    text-decoration: none;
    background-color: rgba(70,76,91,1);
    border-radius: 4px;
    box-shadow: 0 1px 6px rgba(0,0,0,.2);
}

/* 实体类型列表 */
.type-list {
    position: absolute;
    left: 0;
    top: 1px;
    width: 100%;
    min-height: 32px;
    line-height: 32px;
    padding: 0 20px;
    box-sizing: border-box;
    border-bottom: 1px solid #e6e9ef;
    background-color: #f9fbfd;
    color: #fff;
    font-size: 12px;
}
.type-list span {
    margin: 0 5px;
    padding: 2px 8px;
    border-radius: 20px;
    cursor: pointer;
    transition: .3s;
}
.type-list span:hover  {
    filter: brightness(1.1);
}

.svg-box svg{
    display: block;
    width: 100%;
    height: 100%;
    margin: auto;
    box-sizing: border-box;
    border: 1px solid rgba(0,0,0,0.16);
    cursor: move;
}
/* 连接线样式 */
.links line {
    stroke: rgb(165, 171, 182);
    stroke-width: 1px;
}
/* 连接线上文字样式 */
.link-text text {
    cursor: pointer;
    font-size: 13px;
}
/* 节点名称 */
.node-text text{
    font-size: 14px;
    fill: #fff;
    cursor: pointer;
    text-anchor: middle;
    dominant-baseline: middle;
}
/* 节点 */
.nodes circle {
    stroke-width: 2px;
}
